import java.util.Iterator;
import java.util.List;

public class Main {
  public static void main(String[] args) {
    List<String> list = List.of("Apple", "Banana", "Orange");
    for (java.util.Iterator<String> it = list.iterator(); it.hasNext();) {
      String s = it.next();
      System.out.println(s);
    }
  }
}
